<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>商品类型</title>
<hdjs/>
</head>
<body>
	<div class="wrap">
		<div class="menu_list">
			<ul>
				<li><a href="{|U:'add'}">添加类型</a></li>
				<li><a href="{|U:'update'}">更新缓存</a></li>
			</ul>
		</div>
		<table class="table2">
			<thead>
				<tr>
					<td>ID</td>
					<td>类型名称</td>
					<td class="w200">操作</td>
				</tr>
			</thead>
			<tbody>
			<list from="$goodsType" name="$g">
				<tr>
					<td>{$g.cat_id}</td>
					<td>{$g.cat_name}</td>
					<td>
						<a href="{|U:'Attribute/index',array('cat_id'=>$g['cat_id'])}">属性</a> |
						<a href="{|U:'edit',array('cat_id'=>$g['cat_id'])}">编辑</a> |
						<a href="{|U:'del',array('cat_id'=>$g['cat_id'])}"  onclick="return confirm('确定删除吗？')">删除</a>
					</td>
				</tr>
			</list>
			</tbody>
		</table>
	</div>
</body>
</html>